package com.zxy.emailserver;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhangxuyuan
 * @version 1.0
 * @date 2021/1/14
 */
@RestController
@RefreshScope
public class EmailController {

    //测试动态刷新
    @Value("${cloudservice.admin}")
    private String admin;

    //测试动态刷新
    @GetMapping("/test")
    public String test()
    {
        return this.admin;
    }

}
